package com.tothefor.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @Author sun
 *
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Accessors(chain = true)// 使用链式方法
@TableName("s_questionnaire")
public class Questionnaire {
    /**
     * 唯一标识符
     */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private int id;

    /**
     * 群组名称
     */
    @TableField("name")
    private String name;

    /**
     * 群组状态
     */
    @TableField("state")
    private String state;

    @TableField("username")
    private String username;



}
